import { Controller, Get, Param } from '@nestjs/common';
import { StatService } from './stat.service';

@Controller('stat')
export class StatController {
  constructor(private readonly statService: StatService) {}

  @Get(':id')
  async asyncgetAll(@Param('id') id: string) {
    return await this.statService.getAll(id);
  }
}
